﻿<%@ Page Language="c#" CodeBehind="DisplayStyle.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.DocumentFlowPages.DisplayStylePage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>表单示例</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
</head>
<body>
  <form id="frmDisplayStyle" runat="server">
  <div class="commonBg" style="height: 28px; line-height: 28px; vertical-align: middle; text-align: center;">
    表单示例
  </div>
  <asp:Repeater runat="server" ID="repeater">
    <HeaderTemplate>
      <table class="fixedTable" style="width: 800px;">
        <colgroup>
          <col style="width: 80px;" />
          <col style="width: 150px;" />
          <col style="width: 100%;" />
        </colgroup>
    </HeaderTemplate>
    <ItemTemplate>
      <tr>
        <td>&nbsp;</td>
        <td class="formlabel">
          <%# HttpUtility.HtmlEncode(((FlowStyleDescription)Container.DataItem).Description) %>
        </td>
        <td>
          <asp:TextBox runat="server" Enabled="false" Width="<%# ((FlowStyleDescription)Container.DataItem).Width %>" Height="<%# ((FlowStyleDescription)Container.DataItem).Height %>" TextMode="<%# ((FlowStyleDescription)Container.DataItem).Multiline ? TextBoxMode.MultiLine : TextBoxMode.SingleLine %>" CssClass="input3" />
          <%# HttpUtility.HtmlEncode(((FlowStyleDescription)Container.DataItem).Example) %>
        </td>
      </tr>
    </ItemTemplate>
    <FooterTemplate>
      <% if (!string.IsNullOrEmpty(CurrentFlowStyle.Template))
         { %>
      <tr>
        <td>&nbsp;</td>
        <td class="formlabel"><a href="<%= CurrentFlowStyle.TemplateFullVirtualPath %>">模板下载</a> </td>
        <td>
          <input type="file" runat="server" disabled="disabled" class="longInput" />
        </td>
      </tr>
      <% } %>
      <tr>
        <td colspan="3" style="padding: 20px; text-align: center;"><a href="#" onclick="window.history.go(-1);"><b>&#171; 返回上一页</b></a> </td>
      </tr>
      </table>
    </FooterTemplate>
  </asp:Repeater>
  </form>
</body>
</html>
